<?php

namespace App\Models;


class Recommend extends Orm
{
    //
    protected $table = 'recommend';
    protected $dateFormat = 'U';
    public $timestamps = true;


    public function campusInfo()
    {
        return $this->belongsTo(Campus::class, 'campus_id');
    }

    public function mutual()
    {
        return $this->hasMany(Mutual::class,'recommend_id','id')->where('status',1)->orderBy('point');
    }
}
